# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=scrot
pkgver=1.10
pkgrel=0
pkgdesc="Simple command-line screenshot utility for X"
options="!check" # No testsuite
url="https://github.com/resurrecting-open-source-projects/scrot"
arch="all"
license="MIT"
subpackages="$pkgname-doc"
makedepends="
	bsd-compat-headers
	imlib2-dev
	libx11-dev
	libxcomposite-dev
	libxfixes-dev
	libxinerama-dev
	"
source="https://github.com/resurrecting-open-source-projects/scrot/releases/download/$pkgver/scrot-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--docdir=/usr/share/doc/scrot
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
4429c46aafd0928901672cad9c947566b7c5dfec644d041c59489325be06d226488978fe96292bf3d9b478470c8de4313da4451eace81ee869e8aa7e478b0d5f  scrot-1.10.tar.gz
"
